package com.ilongsay.service;

import com.ilongsay.entity.AjaxObject;
import com.ilongsay.entity.ChaiFenSetting;
import com.ilongsay.zhujie.DataSource;

import java.lang.reflect.InvocationTargetException;

/**
 * @Author ilongsay
 * @Email ilongsay@163.com
 * @Copyright 版本所有，侵权必究！
 * @Datetime 2018-12-17 13:49
 * @Describution 将拆分服务抽取出来，若以后要分布式处理（或者线上运营）的话，数据库换成mysql
 */
@DataSource("dataSourceSqlite")
public interface ISplitService {

    public AjaxObject splitByMX(ChaiFenSetting chaiFenSetting) throws InvocationTargetException, IllegalAccessException;

    public AjaxObject splitByTaxRate(ChaiFenSetting chaiFenSetting);

    public AjaxObject splitByAmount(ChaiFenSetting chaiFenSetting) throws InvocationTargetException, IllegalAccessException;
}
